<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>监控中心 - 用户主页</title>

    <!-- Bootstrap Core CSS -->
    <link href="${request.getContextPath()}/public/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="${request.getContextPath()}/public/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="${request.getContextPath()}/public/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="${request.getContextPath()}/public/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!--嵌入头部跟菜单-->
        <#include "/inc/menu.html"/>

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">

                    <!--仓单列表-->

                    <#if receipts??>
                    <#list receipts as rp>

                        <div class="col-lg-12">
                            <h4 class="page-header">
                                <span>仓单编号：${rp.no}</span>&nbsp;&nbsp;
                                <span>品种：${rp.breed}</span>&nbsp;&nbsp;
                                <span>重量：${rp.goodsWeight} 吨</span>&nbsp;&nbsp;
                                <span>仓库：${rp.warehouse.name}</span>&nbsp;&nbsp;
                            </h4>

                            <div class="row">
                            <#if  rp.cameraList?? >
                                <#list rp.cameraList as camera>
                                <!--仓单关联摄像头列表-->
                                <div class="col-lg-4">
                                    <div class="panel panel-default">
                                        <div class="panel-body">
                                            <a href="${request.getContextPath()}/home/vdio/info.do?repNo=${rp.no}&cameraId=${camera.id}"> <img class="img-responsive" src="${camera.coverImageUrl}"></a>
                                        </div>
                                        <div class="panel-footer">
                                            摄像机： ${camera.name}
                                        </div>
                                    </div>
                                </div>
                                </#list>
                                <#else>
                                    <h4>无摄像头配置</h4>
                            </#if>
                            </div>

                        </div>


                    </#list>
                        <#else>
                            <h4>暂无监控仓单记录</h4>
                    </#if>

                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="${request.getContextPath()}/public/vendor/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="${request.getContextPath()}/public/vendor/bootstrap/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="${request.getContextPath()}/public/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="${request.getContextPath()}/public/dist/js/sb-admin-2.js"></script>

</body>

</html>
